package com.ruoyi.project.seeDoctor.controller;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.page.TableDataInfo;
import com.ruoyi.project.seeDoctor.domain.MedPati;
import com.ruoyi.project.seeDoctor.service.IRegisterService;
import com.ruoyi.project.system.domain.SysPost;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/seeDoctor/patientBank")
public class PatientBankController extends BaseController {
    @Autowired
    private IRegisterService iRegisterService;

    /**
     * 获取患者列表
     */
    @PreAuthorize("@ss.hasPermi('seeDoctor:patientBank:list')")
    @GetMapping("/list")
    public TableDataInfo list(MedPati medPati)
    {
        startPage();
        List<MedPati> medPatis = iRegisterService.selMedPatiListService(medPati);
        return getDataTable(medPatis);
    }

}
